package com.local.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

@Entity
@Table(name = "local_biz_update")
public class LocalBizUpdate {
    @NotEmpty
    @Length(min=1,max=32)
    @Column(name = "biz_uuid")
    private String bizUuid;

    @NotEmpty
    @Length(min=1,max=32)
    @Column(name = "record_uuid")
    private String recordUuid;

    @NotEmpty
    @Length(min=1,max=32)
    @Column(name = "table_name")
    private String tableName;

    @NotEmpty
    @Length(min=1,max=2147483647)
    @Column(name = "error_info")
    private String errorInfo;

    public String getBizUuid() {
        return bizUuid;
    }

    public void setBizUuid(String bizUuid) {
        this.bizUuid = bizUuid == null ? null : bizUuid.trim();
    }

    public String getRecordUuid() {
        return recordUuid;
    }

    public void setRecordUuid(String recordUuid) {
        this.recordUuid = recordUuid == null ? null : recordUuid.trim();
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName == null ? null : tableName.trim();
    }

    public String getErrorInfo() {
        return errorInfo;
    }

    public void setErrorInfo(String errorInfo) {
        this.errorInfo = errorInfo == null ? null : errorInfo.trim();
    }
}